package com.lfy.modules.letter.service;

import com.lfy.modules.common.domain.R;
import com.lfy.modules.letter.domain.SiteLetterEntity;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lfy.modules.letter.domain.builder.Letter;
import com.lfy.modules.letter.domain.dto.FeedLetterDTO;
import com.lfy.modules.letter.domain.dto.GlobalLetterDTO;
import com.lfy.modules.letter.domain.dto.LetterDTO;
import com.lfy.modules.letter.domain.vo.FeedLetterVO;
import com.lfy.modules.letter.domain.vo.GlobalLetterVO;
import com.lfy.modules.letter.domain.vo.LetterVO;
import com.lfy.modules.letter.domain.vo.SysLetterVO;

import java.util.List;

/**
* @author 吕飞扬
* @description 针对表【sys_site_letter】的数据库操作Service
* @createDate 2024-05-23 13:26:13
*/
public interface SiteLetterService extends IService<SiteLetterEntity> {

    R<SysLetterVO> getLetterList();

    R<List<LetterVO>> getSysLetter(Integer length);

    R<List<GlobalLetterVO>> getGlobalLetter(Integer length);

    R<Void> sendGlobalLetter(GlobalLetterDTO globalLetterDTO);

    R<Void> sendSysLetter(LetterDTO dto);

    R<Void> sendFeedbackLetter(FeedLetterDTO dto);

    R<List<FeedLetterVO>> getFeedbackLetter();

    R<Void> removeFeedbackLetter();

}
